package com.yipei.business.job;

import com.yipei.business.service.IMlInvestmentProductOrderService;
import com.yipei.business.service.IMlTradeAccountFinancingService;
import com.yipei.business.service.IMlTradeAccountService;
import com.yipei.business.service.IMlTradeEntrustOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("tradeOrder")
public class TradeExecutionJob {
    @Autowired
    private IMlTradeEntrustOrderService iMlTradeEntrustOrderService;

    @Autowired
    private IMlTradeAccountFinancingService iMlTradeAccountFinancingService;
    @Autowired
    private IMlTradeAccountService iMlTradeAccountService;
    @Autowired
    private IMlInvestmentProductOrderService iMlInvestmentProductOrderService;
    public void tradingThread () throws Exception {
        iMlTradeEntrustOrderService.tradingOrder();
    }

    public void tradeAccountJzCashJob () throws Exception {
        iMlTradeAccountService.djCashByKqZjJob();
    }

    public void interestSettlementJob () throws Exception {
        iMlTradeAccountFinancingService.interestSettlementJob();
    }

    public void priceCountaddJob () throws Exception {
        iMlTradeEntrustOrderService.priceCountaddJob();
    }

    public void mlInvestmentProductOrder () throws Exception {
        iMlInvestmentProductOrderService.mlInvestmentProductOrder();
    }

    public void mlTradeEntrustOrderCancel () throws Exception {
        iMlTradeEntrustOrderService.mlTradeEntrustOrderCancel();
    }
}
